(function(){
	angular.module('app')
		.controller('ctrl.tip',['$scope','$state','$uibModalInstance',tipCtrl])
		.service('authTip',['$uibModal', authCtrl])
		function tipCtrl($scope,$state,$uibModalInstance){
			var vm = $scope.vm = {};
			angular.extend(vm,{
				init : function(){
					
				},
				save : function(){
					$state.go('app.setting.menu.confer');
					$uibModalInstance.dismiss('cancel');
				},
				cancel : function(){
					window.history.back(-1);
					$uibModalInstance.dismiss('cancel');
				}
			});
			vm.init();
		}
		function authCtrl($uibModal){
			return{
				tip  : function(){
					 var modalInstance = $uibModal.open({
				          templateUrl: "../views/mxu/common/tpl/authTip.html",
				          controller: 'ctrl.tip'
			         });
			   }
		  }
		}
})();